<extend name="layout/main" />

<block name="HEADER">
	<style type="text/css">
		.xw__grid .layui-table-view .layui-table td .layui-table-cell{
			height: 50px;
		    line-height: 50px;
		}
		.file-img {
		    height: 100%;
		    background-position: left;
		    background-size: 100% 85%;
		    background-repeat: no-repeat;
		    cursor: pointer;
		}
		#detailedInfoForm .xw-form-formType-div{
			padding: 0 !important;
			padding-left: 5px !important;
		}
		#detailedInfoForm .sections:last-child .table-cell:last-child{ margin-bottom: 0; }
	</style>
</block>

<block name="CONTENT">
	<control:grid id="grid"/>
</block>


<block name="FOOTER">
	<script type="text/javascript">
		var page = (function(ns){
     		
			//订单时间模板
			ns.gridTimeTemplet = function(e) {
				return "<div style='line-height:24px;white-space: normal;'>" + e.data.create_time + "</div>";
			}
     		
		    //服务完成
			ns.complete = function() {
				var selectRow = grid.getSelectedRows()[0];
				$.confirm("确定完成服务？",function(){
					$.ajaxs("/admin/v1/shop_yy/complete",{
						id:selectRow.id
					}).then(function(){
						$.toast(1,'操作成功！');
						grid.load();
					});
				});
			}

		
		    return ns;
		}({}));
		
	</script>
</block>